<?php
function return_hdmin($flag = false, $module){
	
	$nodes = array(
		
		"Index"=>array(
			'index'     =>array("zh-cn"=>"应用首页 ","zh-tw"=>"应用首页","en-us"=>"System Home"),
			'cache'     =>array("zh-cn"=>"清除缓存","zh-tw"=>"清除缓存","en-us"=>"Clean Cache"),
			'config'    =>array("zh-cn"=>"系统设置","zh-tw"=>"系统设置","en-us"=>"System Setup"),
			'getNews'   =>array("zh-cn"=>"语音提示","zh-tw"=>"语音提示","en-us"=>"语音提示"),
		 ),
			
		"Company"=>array(

			"admin"  => array("zh-cn"=>"用户管理","zh-tw"=>"用户管理","en-us"=>"用户管理",
				"child" => array(
					'adminAdd'    =>array("zh-cn"=>"添加用户","zh-tw"=>"添加用户","en-us"=>"添加用户"),
					'adminDel'    =>array("zh-cn"=>"删除用户","zh-tw"=>"删除用户","en-us"=>"删除用户"),
					'adminEdit'   =>array("zh-cn"=>"修改用户","zh-tw"=>"修改用户","en-us"=>"修改用户"),
					'adminActive' =>array("zh-cn"=>"变更用户状态","zh-tw"=>"变更用户状态","en-us"=>"变更用户状态"),
					'step'        =>array("zh-cn"=>"个人资料管理","zh-tw"=>"个人资料管理","en-us"=>"个人资料管理"),
				)	
			),
			
			"role"  => array("zh-cn"=>"角色管理","zh-tw"=>"角色管理","en-us"=>"角色管理",
				"child" => array(
					'roleAdd'    =>array("zh-cn"=>"添加角色","zh-tw"=>"添加角色","en-us"=>"添加角色"),
					'roleDel'    =>array("zh-cn"=>"删除角色","zh-tw"=>"删除角色","en-us"=>"删除角色"),
					'roleEdit'   =>array("zh-cn"=>"修改角色","zh-tw"=>"修改角色","en-us"=>"改角色"),
					'roleMenu'   =>array("zh-cn"=>"角色菜单","zh-tw"=>"角色菜单","en-us"=>"角色菜单"),
				),
			),
		),
		
		"Custom"=>array(
			"index"  => array("zh-cn"=>"会员管理","zh-tw"=>"会员管理","en-us"=>"会员管理",
					
				"child" => array(
					'add'       =>array("zh-cn"=>"添加会员","zh-tw"=>"添加会员","en-us"=>"Add  Custom"),
					'del'       =>array("zh-cn"=>"删除会员","zh-tw"=>"删除会员","en-us"=>"Del  Custom"),
					'edit'      =>array("zh-cn"=>"修改会员","zh-tw"=>"修改会员","en-us"=>"Edit Custom"),
					'address'   =>array("zh-cn"=>"添加会员地址","zh-tw"=>"添加会员地址","en-us"=>"添加会员地址"),
					'outletLbs' =>array("zh-cn"=>"标注信息点","zh-tw"=>"标注信息点","en-us"=>"标注信息点"), 
					'deladdress'=>array("zh-cn"=>"删除会员地址","zh-tw"=>"删除会员地址","en-us"=>"删除会员地址"),
					'view'      =>array("zh-cn"=>"查看会员信息","zh-tw"=>"查看会员信息","en-us"=>"查看会员信息"),
					'detail'    =>array("zh-cn"=>"会员详情","zh-tw"=>"会员详情","en-us"=>"会员详情"),
					'frost'     =>array("zh-cn"=>"冻结会员","zh-tw"=>"冻结会员","en-us"=>"冻结会员"), 
					'thaw'      =>array("zh-cn"=>"解除冻结","zh-tw"=>"解除冻结","en-us"=>"解除冻结"),
					'import'    =>array("zh-cn"=>"批量导入会员","zh-tw"=>"批量导入会员","en-us"=>"批量导入会员"),
					'export'    =>array("zh-cn"=>"批量导出会员","zh-tw"=>"批量导出会员","en-us"=>"批量导出会员"),
				),
			),
				
			"group"=>array("zh-cn"=>"分组管理","zh-tw"=>"分组管理","en-us"=>"Custom List",
					
				"child" => array(
					'groupAdd'     =>array("zh-cn"=>"添加分组","zh-tw"=>"添加分组","en-us"=>"Add  Group"),
					'groupDel'     =>array("zh-cn"=>"删除分组","zh-tw"=>"删除分组","en-us"=>"Del  Group"),
					'groupEdit'    =>array("zh-cn"=>"修改分组","zh-tw"=>"修改分组","en-us"=>"Edit Group"),
					'groupMember'  =>array("zh-cn"=>"添加组员","zh-tw"=>"添加组员","en-us"=>"Add  Member"),
					'groupView'    =>array("zh-cn"=>"查看组员","zh-tw"=>"查看组员","en-us"=>"Select Member"),
					'groupMove'    =>array("zh-cn"=>"会员分组","zh-tw"=>"会员分组","en-us"=>"Move Member")
				),
			
			),
			/*	
			"level"=>array("zh-cn"=>"会员等级管理","zh-tw"=>"会员等级管理","en-us"=>"Custom List",
						
				"child" => array(
					'levelAdd'  =>array("zh-cn"=>"添加会员等级","zh-tw"=>"添加会员等级","en-us"=>"Add  Level"),
					'levelDel'  =>array("zh-cn"=>"删除会员等级","zh-tw"=>"删除会员等级","en-us"=>"Del  Level"),
					'levelEdit' =>array("zh-cn"=>"修改会员等级","zh-tw"=>"修改会员等级","en-us"=>"Edit Level"),
				),
			),
			*/
		),
			
		"Product"=>array(
				'index'  => array("zh-cn"=>"菜品列表","zh-tw"=>"菜品列表","en-us"=>"菜品列表",
					"child" => array(
						'add'   =>array("zh-cn"=>"添加菜品","zh-tw"=>"添加菜品","en-us"=>"Add  Dishes"),
						'del'   =>array("zh-cn"=>"删除菜品","zh-tw"=>"删除菜品","en-us"=>"Del  Dishes"),
						'delall'=>array("zh-cn"=>"批量删除菜品","zh-tw"=>"批量删除菜品","en-us"=>"Del Dishes"),
						'edit'  =>array("zh-cn"=>"修改菜品","zh-tw"=>"修改菜品","en-us"=>"Edit Dishes"),
						'import'=>array("zh-cn"=>"批量导入菜品","zh-tw"=>"批量导入菜品","en-us"=>"批量导入菜品"),
						'read_excel'=>array("zh-cn"=>"执行读入菜品","zh-tw"=>"执行读入菜品","en-us"=>"执行读入菜品"),
						'is_xsj'    =>array("zh-cn"=>"批量上下架","zh-tw"=>"批量上下架","en-us"=>"批量上下架"),
						'fuzhi'     =>array("zh-cn"=>"批量复制属性","zh-tw"=>"批量复制属性","en-us"=>"批量复制属性")
					)
				),
				"sort" => array("zh-cn"=>"菜品分类列表","zh-tw"=>"菜品分类列表","en-us"=>"菜品分类列表",
					"child" => array(
						'dishesByOutlet'=>array("zh-cn"=>"菜品首页添加菜品分类","zh-tw"=>"菜品首页添加菜品分类","en-us"=>"菜品首页添加菜品分类"),
						'sortAdd'  =>array("zh-cn"=>"添加菜品分类","zh-tw"=>"添加菜品分类","en-us"=>"Add  sortAdd"),
						'sortDel'  =>array("zh-cn"=>"删除菜品分类","zh-tw"=>"删除菜品分类","en-us"=>"Del  sortDel"),
						'sortEdit' =>array("zh-cn"=>"修改菜品分类","zh-tw"=>"修改菜品分类","en-us"=>"Edit sortEdit"),
						'sortByOutlet' =>array("zh-cn"=>"异步获取菜品分类列表","zh-tw"=>"异步获取菜品分类列表","en-us"=>"异步获取菜品分类列表")
					),
				),
				"drink"  => array("zh-cn"=>"库存商品管理","zh-tw"=>"库存商品管理","en-us"=>"库存商品管理",
					"child" => array(
						'drinkAdd'  =>array("zh-cn"=>"添加库存商品","zh-tw"=>"添加库存商品","en-us"=>"Add  Drink"),
						'drinkDel'  =>array("zh-cn"=>"删除库存商品","zh-tw"=>"删除库存商品","en-us"=>"Del  Drink"),
						'drinkEdit' =>array("zh-cn"=>"修改库存商品","zh-tw"=>"修改库存商品","en-us"=>"Edit Drink"),
						'drinkGet'  =>array("zh-cn"=>"领取库存商品","zh-tw"=>"领取库存商品","en-us"=>"领取库存商品"),
						'drinkList' =>array("zh-cn"=>"库存商品领取记录","zh-tw"=>"库存商品领取记录","en-us"=>"库存商品领取记录"),
						'isshow'    =>array("zh-cn"=>"批量显示隐藏","zh-tw"=>"批量显示隐藏","en-us"=>"批量显示隐藏"),
					),
				),	
		),
		"Outlet" => array(
			"index"  => array("zh-cn"=>"餐厅管理","zh-tw"=>"餐厅管理","en-us"=>"餐厅管理",
				"child" => array(
					'add'     =>array("zh-cn"=>"添加餐厅","zh-tw"=>"添加餐厅","en-us"=>"Add  Outlet"),
					'del'     =>array("zh-cn"=>"删除餐厅","zh-tw"=>"删除餐厅","en-us"=>"Del  Outlet"),
					'edit'    =>array("zh-cn"=>"修改餐厅","zh-tw"=>"修改餐厅","en-us"=>"Edit Outlet"),
					'message' =>array("zh-cn"=>"留言管理","zh-tw"=>"留言管理","en-us"=>"Edit Message"),
					'outletLbs' =>array("zh-cn"=>"标注信息点","zh-tw"=>"标注信息点","en-us"=>"标注信息点"),
					'export'    =>array("zh-cn"=>"导出餐厅","zh-tw"=>"导出餐厅","en-us"=>"导出餐厅"),
					'message'   =>array("zh-cn"=>"留言管理","zh-tw"=>"留言管理","en-us"=>"留言管理"),
					'messageDel'   =>array("zh-cn"=>"删除留言","zh-tw"=>"删除留言","en-us"=>"删除留言"),
					'messageDel'   =>array("zh-cn"=>"删除留言","zh-tw"=>"删除留言","en-us"=>"删除留言"),
					'messageDelall'   =>array("zh-cn"=>"批量删除留言","zh-tw"=>"批量删除留言","en-us"=>"批量删除留言"),
					'business'   =>array("zh-cn"=>"批量开业停业","zh-tw"=>"批量开业停业","en-us"=>"批量开业停业"),
					'distribution'   =>array("zh-cn"=>"批量开启关闭免费配送","zh-tw"=>"批量开启关闭免费配送","en-us"=>"批量开启关闭免费配送"),
				),
			),
		),
		"Address" => array(
			"index"  => array("zh-cn"=>"常用地址管理","zh-tw"=>"常用地址管理","en-us"=>"常用地址管理",
				"child" => array(
					'index'=>array("zh-cn"=>"地址管理","zh-tw"=>"地址管理","en-us"=>"Address"),
					'add'  =>array("zh-cn"=>"添加地址","zh-tw"=>"添加地址","en-us"=>"Add  Address"),
					'del'  =>array("zh-cn"=>"删除地址","zh-tw"=>"删除地址","en-us"=>"Del  Address"),
					'edit' =>array("zh-cn"=>"修改地址","zh-tw"=>"修改地址","en-us"=>"Edit Address"),
					'outletLbs' =>array("zh-cn"=>"标注信息点","zh-tw"=>"标注信息点","en-us"=>"Edit Address"),
				),
			),
		),
		"Cuisine" => array(
			"index"  => array("zh-cn"=>"菜系管理","zh-tw"=>"菜系管理","en-us"=>"菜系管理",
				"child" => array(
					'index'=>array("zh-cn"=>"菜系管理","zh-tw"=>"菜系管理","en-us"=>"Cuisine"),
					'add'  =>array("zh-cn"=>"添加菜系","zh-tw"=>"添加菜系","en-us"=>"Add  Cuisine"),
					'del'  =>array("zh-cn"=>"删除菜系","zh-tw"=>"删除菜系","en-us"=>"Del  Cuisine"),
					'edit' =>array("zh-cn"=>"修改菜系","zh-tw"=>"修改菜系","en-us"=>"Edit Cuisine"),
				),
			),
		),
		"Order" => array(
			"index"        => array("zh-cn"=>"订单列表","zh-tw"=>"订单列表","en-us"=>"Order list"),

			"order_confirm"     => array("zh-cn"=>"正在确认订单","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_isconfirm"   => array("zh-cn"=>"确认订单","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_notify"      => array("zh-cn"=>"已报餐","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_fenpei"      => array("zh-cn"=>"已分配","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_neededit"    => array("zh-cn"=>"需要修改","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_isedit"      => array("zh-cn"=>"已修改","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_editok"      => array("zh-cn"=>"餐厅已受理","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_complaint"   => array("zh-cn"=>"投诉中","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_iscomplaint" => array("zh-cn"=>"投诉已处理","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_cancel"      => array("zh-cn"=>"取消订单","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_over"        => array("zh-cn"=>"关闭订单","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			"order_status"      => array("zh-cn"=>"查看订单状态","zh-tw"=>"订单详情","en-us"=>"订单详情"),

			"detail"       => array("zh-cn"=>"订单详情","zh-tw"=>"订单详情","en-us"=>"订单详情"),
			'del'          => array("zh-cn"=>"删除订单","zh-tw"=>"删除订单","en-us"=>"Del Order"),
			'cancel'       => array("zh-cn"=>"取消订单","zh-tw"=>"取消订单","en-us"=>"Cancel Order"),
			'add'          => array("zh-cn"=>"添加订单","zh-tw"=>"添加订单","en-us"=>"Add Order"),
			'site'         => array("zh-cn"=>"选择常用地址","zh-tw"=>"选择常用地址","en-us"=>"选择常用地址"),
			'map'          => array("zh-cn"=>"通过地图选址","zh-tw"=>"通过地图选址","en-us"=>"通过地图选址"),
			'addcart'      => array("zh-cn"=>"添加到购物车","zh-tw"=>"添加到购物车","en-us"=>"添加到购物车"),
			'cartlist'     => array("zh-cn"=>"购物车列表","zh-tw"=>"购物车列表","en-us"=>"购物车列表"),
			'numcart'      => array("zh-cn"=>"修改购物车商品数量","zh-tw"=>"修改购物车商品数量","en-us"=>"修改购物车商品数量"),
			'attrcart'     => array("zh-cn"=>"添加购物车商品属性","zh-tw"=>"添加购物车商品属性","en-us"=>"添加购物车商品属性"),
			'delcart'      => array("zh-cn"=>"删除购物车商品","zh-tw"=>"删除购物车商品","en-us"=>"删除购物车商品"),
			'edit'         => array("zh-cn"=>"修改订单","zh-tw"=>"修改订单","en-us"=>"Edit Order"),
			'view'         => array("zh-cn"=>"查看订单","zh-tw"=>"查看订单","en-us"=>"Order View"),
			'deal'         => array("zh-cn"=>"分配订单","zh-tw"=>"分配订单","en-us"=>"分配订单"),
			'sell'         => array("zh-cn"=>"订单销售报表","zh-tw"=>"订单销售报表","en-us"=>"订单销售报表"),
			'export_sell'  => array("zh-cn"=>"导出订单销售报表","zh-tw"=>"导出订单销售报表","en-us"=>"导出订单销售报表"),
			'time'         => array("zh-cn"=>"订单时间报表","zh-tw"=>"订单时间报表","en-us"=>"订单时间报表"),
			'export_time'  => array("zh-cn"=>"导出订单时间报表","zh-tw"=>"导出订单时间报表","en-us"=>"导出订单时间报表"),
			'status'       => array("zh-cn"=>"订单状态报表","zh-tw"=>"订单状态报表","en-us"=>"订单状态报表"),
			'export_status'=> array("zh-cn"=>"导出订单状态报表","zh-tw"=>"导出订单状态报表","en-us"=>"导出订单状态报表"),
			//'delivery'   => array("zh-cn"=>"配送报表","zh-tw"=>"配送报表","en-us"=>"配送报表"),
			'export'       => array("zh-cn"=>"导出订单","zh-tw"=>"导出订单","en-us"=>"导出订单"),
			'exportCaiwu'  => array("zh-cn"=>"导出财务报表","zh-tw"=>"导出财务报表","en-us"=>"导出财务报表"),
			'getDelivery'  => array("zh-cn"=>"获取配送员","zh-tw"=>"获取配送员","en-us"=>"获取配送员"),
			'confirm'      => array("zh-cn"=>"确认订单","zh-tw"=>"确认订单","en-us"=>"确认订单"),
			'printOrder'   => array("zh-cn"=>"打印订单","zh-tw"=>"打印订单","en-us"=>"打印订单"),
			'printpdf'     => array("zh-cn"=>"订单导出pdf","zh-tw"=>"订单导出pdf","en-us"=>"订单导出pdf"),
			'orderbak'     => array("zh-cn"=>"订单备注","zh-tw"=>"订单备注","en-us"=>"订单备注"),
			'delProduct'   => array("zh-cn"=>"删除订单商品","zh-tw"=>"删除订单商品","en-us"=>"删除订单商品"),
		),
		"Dict"  => array(
			'index'     =>array("zh-cn"=>"数据字典列表","zh-tw"=>"数据字典列表","en-us"=>"数据字典列表"),
			'add'       =>array("zh-cn"=>"添加数据字典", "zh-tw"=>"添加数据字典", "en-us"=>"Add Data Dictionary"),
			'del'       =>array("zh-cn"=>"删除数据字典", "zh-tw"=>"删除数据字典", "en-us"=>"Del Data Dictionary"),
			'edit'      =>array("zh-cn"=>"修改数据字典", "zh-tw"=>"修改数据字典", "en-us"=>"Edit Data Dictionary"),
			'sort'      =>array("zh-cn"=>"栏目排序",    "zh-tw"=>"栏目排序",    "en-us"=>"Column sorting"),
			"cache"     =>array("zh-cn"=>"生成字典缓存", "zh-tw"=>"生成字典緩存", "en-us"=>"Create Dictionary Cache"),
			"getChildColumn" =>array("zh-cn"=>"获取子栏目", "zh-tw"=>"获取子栏目", "en-us"=>"Create Dictionary Cache"),
		),
		"Content" => array(
			"article"  => array("zh-cn"=>"文章管理","zh-tw"=>"文章管理","en-us"=>"文章管理",
				"child" => array(
					'articleAdd'     =>array("zh-cn"=>"添加文章","zh-tw"=>"添加文章","en-us"=>"添加文章"),
					'articleEdit'    =>array("zh-cn"=>"修改文章","zh-tw"=>"修改文章","en-us"=>"修改文章"),
					'articleDel'     =>array("zh-cn"=>"删除文章","zh-tw"=>"删除文章","en-us"=>"删除文章"),
					'articleChecked' =>array("zh-cn"=>"批量审核文章","zh-tw"=>"批量审核文章","en-us"=>"批量审核文章"),
					'articleMoreDel' =>array("zh-cn"=>"批量删除文章","zh-tw"=>"批量删除文章","en-us"=>"批量删除文章"),
				),
			),
			"artonce"  => array("zh-cn"=>"单页管理","zh-tw"=>"单页管理","en-us"=>"单页管理",
				"child" => array(
					'artonceAdd'     =>array("zh-cn"=>"添加单页","zh-tw"=>"添加单页","en-us"=>"添加单页"),
					'artonceEdit'    =>array("zh-cn"=>"修改单页","zh-tw"=>"修改单页","en-us"=>"修改单页"),
					'artonceDel'     =>array("zh-cn"=>"删除单页","zh-tw"=>"删除单页","en-us"=>"删除单页"),
					'artonceChecked' =>array("zh-cn"=>"批量审核单页","zh-tw"=>"批量审核单页","en-us"=>"批量审核单页"),
					'artonceMoreDel' =>array("zh-cn"=>"批量删除单页","zh-tw"=>"批量删除单页","en-us"=>"批量删除单页"),
				),
			),
			/*
			"admarket"  => array("zh-cn"=>"广告管理","zh-tw"=>"广告管理","en-us"=>"广告管理",
				"child" => array(
					'admarketAdd'     =>array("zh-cn"=>"添加广告","zh-tw"=>"添加广告","en-us"=>"添加广告"),
					'admarketEdit'    =>array("zh-cn"=>"修改广告","zh-tw"=>"修改广告","en-us"=>"修改广告"),
					'admarketDel'     =>array("zh-cn"=>"删除广告","zh-tw"=>"删除广告","en-us"=>"删除广告"),
					'admarketChecked' =>array("zh-cn"=>"批量审核广告","zh-tw"=>"批量审核广告","en-us"=>"批量审核广告"),
					'admarketMoreDel' =>array("zh-cn"=>"批量删除广告","zh-tw"=>"批量删除广告","en-us"=>"批量删除广告"),
				),
			),*/
		),
		"system" => array(
			'index' =>array("zh-cn"=>"系统配置","zh-tw"=>"系统配置","en-us"=>"系统配置"),
		),
			
	);

	if($flag){
		return $nodes[$module];
	}else{
		
		foreach($nodes as $k => $v){
			$rows[] = $k;
		}
		return $rows;
	}
	
	
}
